package cn.ybk.system.controller;


import cn.ybk.system.domain.Aop;
import cn.ybk.system.service.AopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/aop")
public class AopController {

    @Autowired
    private AopService aopService;

    @GetMapping
    public List<Aop> findAll() {
        return aopService.findAll();
    }


}
